package com.zwh.minio.multipart;

import java.util.List;

/**
 * 分片上传返回参数
 *
 * @author doubleZhang
 * @date 2024-10-28 16:11
 */
public class MultipartUploadTaskVo {
    /**
     * 分片任务id
     */
    private String uploadId;
    /**
     * 每个分片上传的url地址，分片下标要按照指定地址上传
     */
    private List<UploadTaskItem> uploadUrls;


    public static class UploadTaskItem {
        /**
         * 分片下标
         */
        private Integer partNumber;
        /**
         * 上传地址
         */
        private String uploadUrl;

        public UploadTaskItem(Integer partNumber, String uploadUrl) {
            this.partNumber = partNumber;
            this.uploadUrl = uploadUrl;
        }

        public Integer getPartNumber() {
            return partNumber;
        }

        public void setPartNumber(Integer partNumber) {
            this.partNumber = partNumber;
        }

        public String getUploadUrl() {
            return uploadUrl;
        }

        public void setUploadUrl(String uploadUrl) {
            this.uploadUrl = uploadUrl;
        }
    }

    public String getUploadId() {
        return uploadId;
    }

    public void setUploadId(String uploadId) {
        this.uploadId = uploadId;
    }

    public List<UploadTaskItem> getUploadUrls() {
        return uploadUrls;
    }

    public void setUploadUrls(List<UploadTaskItem> uploadUrls) {
        this.uploadUrls = uploadUrls;
    }
}
